<!DOCTYPE HTML>
<html xmlns:th=”http://www.thymeleaf.org”>
<head>
    <title>hello</title>
    <meta content=”text/html; charset=UTF-8”/>
</head>
<body>
<table>
    <tr>
        <td>用户名</td>
        <td>年龄</td>
    </tr>
    <tr th:each="student:${list}">
        <td th:text="${student.name}"></td>
        <td th:text="${student.age}"></td>
    </tr>
</table>
</body>
</html>